<html>
    <head>
        <meta name='layout' content='thick_sidebar'/>
        <content tag="title">ibiblio terasaur - OpenID Registration</content>
    </head>
    <body>
        <div>
<g:if test='${openId}'>
            <span class="message-large">It looks like this is your first time logging in with OpenID.  Please choose a
            nickname to complete the registration process.  Your nickname will be visible to others and can only have
            letters and numbers.
            </span>
            <br/><br/>
            <div class="rule"><hr /></div>
    <g:hasErrors bean="${command}">
            <div class="errors">
                <g:renderErrors bean="${command}" as="list"/>
            </div>
    </g:hasErrors>
            <g:form action='createAccount'>
                <table>
                <tr>
                    <td>Open ID:</td>
                    <td><span id='openid'>${openId}</span></td>
                </tr>
                <tr>
                    <td><label for='username'>Nickname:</label></td>
                    <td><g:textField name='username' value='${command.username}'/></td>
                </tr>
                </table>
                <input type='submit' value='Register'/>
            </g:form>
</g:if>
<g:else>
            <span class="message-large">Sorry, we didn't find a valid OpenID.  Please go back to the <g:link controller="login" action="auth">log in</g:link> page and try again.</span>
            <br/><br/>
            <div class="rule"><hr /></div>
</g:else>
        </div>
    </body>
</html>
